package io.renren.service;

import io.renren.common.service.CrudService;
import io.renren.common.utils.Result;
import io.renren.dto.AuxiliaryMaterialsmxDTO;
import io.renren.entity.AuxiliaryMaterialsmxEntity;

import java.util.List;

/**
 * 辅材采购明细表
 *
 * @author 罗胜平 781757616@qq.com
 * @since 1.0.0 2019-11-22
 */
public interface AuxiliaryMaterialsmxService extends CrudService<AuxiliaryMaterialsmxEntity, AuxiliaryMaterialsmxDTO> {

    void deleteOrder(Long dto);

    List<AuxiliaryMaterialsmxDTO> selectGyss(Long id);
    List<AuxiliaryMaterialsmxDTO> seletMx(Long id);

    List<AuxiliaryMaterialsmxDTO> selectFoods(long id,long ids);
    List<AuxiliaryMaterialsmxDTO> seletGysFood1(long id,long ids);

    void updateUnitPrice(AuxiliaryMaterialsmxDTO dto);

    Result updatePhoto(AuxiliaryMaterialsmxDTO dto);
    void updateOrder1(long id,long subStutas);
    void updateOrder2(long orderId,long foodId,float purchaseNum);
    void delectOrder(long orderId,long foodId);
}